//引入封装的请求服务
import { POST, UPLOAD } from '@/services/request.js'

const base = {
    register(data = {}) {
        return POST({
            url: '/user/base/register',
            params: data
        })
    },
    login(data = {}) {
        return POST({
            url: '/user/base/login',
            params: data
        })
    },
    profile(data = {}) {
        return UPLOAD({
            url: '/user/base/profile',
            params: data
        })
    }
}

export default base